package org.ekstrabilet.stadium.beans;

import java.util.ArrayList;

/**
 * 
 * @author Maciej Koch
 *
 */
public class Tribune extends PhysicalObject{
	
	private ArrayList<Sector> sectors = new ArrayList<Sector>();	
	private int capacity;
	private int number;
	
	public int getCapacity() {
		return capacity;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}
	
	public ArrayList<Sector> getSectors() {
		return sectors;
	}

	public void setSectors(ArrayList<Sector> sectors) {
		this.sectors = sectors;
	}
	
	public Sector getSector(int i) {
		if(i < 0 || i >= sectors.size())
			return null;
		return sectors.get(i);
	}
	

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public void addSector(Sector s) {
		this.sectors.add(s);
	}
}
